import React, { useEffect } from 'react'

export default function B() {
  useEffect(() => {
    console.log('B 挂载');

    return () => {
      console.log('B 卸载')
    }
  }, [])
  return (
    <div id="b">B</div>
  )
}
